//
//  BaseViewController.h
//  JJHW_coreData
// 主基类，主要放一些公用的元素 和方法
//  Created by lizhenqiang on 16/4/2.
//  Copyright © 2016年 HFKJ_LZQ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NavBarItem.h"
#import "UITableView+FDTemplateLayoutCell.h"
#define kNoDataLabelFrame CGRectMake(10, 10, DeviceWidth-20, 30)

@interface BaseViewController : UIViewController

@property (strong, nonatomic) UILabel *labelTitleView;
@property (strong, nonatomic) NSString *titleForNav;
@property (nonatomic) BOOL isSupportSingleTapHideKeyboard;

@property (strong, nonatomic)UIButton *leftItemBtn;
@property (strong, nonatomic)UIButton *rightItemBtn;

- (void)leftItemClick:(id)sender;
- (void)rightItemClick:(id)sender;
- (void)hideKeyboard;
- (void)setRightNavItemWith:(NavBarItem *)obj ;
- (void)setLeftNavItemWith:(NavBarItem *)obj ;
- (void)setNavTitleView;
@property (strong, nonatomic)UILabel *labelNoData;
- (void)addLabelNoDataToView:(UIView *)view AndText:(NSString *)str  andFrame:(CGRect)rect;
- (void)isHideLabelNoDataWith:(BOOL)hide;
- (void)setTableFooterView:(UITableView *)tb ;
- (void)setTableViewFooterView:(UITableView *)tb andColor:(UIColor *)color;
- (BOOL)isLogin;


#pragma mark mycoding中方法
- (void)tabBarItemClicked;
- (void)loginOutToLoginVC;

+ (void)handleNotificationInfo:(NSDictionary *)userInfo applicationState:(UIApplicationState)applicationState;
+ (UIViewController *)analyseVCFromLinkStr:(NSString *)linkStr;
+ (void)presentLinkStr:(NSString *)linkStr;
+ (UIViewController *)presentingVC;
+ (void)presentVC:(UIViewController *)viewController;
-(UIViewController *)getVCfromStoryboard:(NSString *)storyBoardName andVCname:(NSString *)VC;
@end
